package nm.aleksey.server;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;

public class ClazzServiceLocator implements ServiceLocator {

  @Override
  public Object getInstance(Class<?> clazz) {
    try {
      return clazz.newInstance();
    } catch (InstantiationException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    }
    return null;
  }

}
